package com.spring.mvc.dao;

import com.spring.mvc.pojo.CallResult;
import com.spring.mvc.pojo.User;

public interface UserDAO {

	/**
	 * user login dao
	 * @param userName
	 * @param userPwd
	 * @return
	 */
	public CallResult login(User user);

	/**
	 * check user name isExists dao
	 * @param userName
	 * @return
	 */
	public CallResult check(String userName);

	/**
	 * user register dao 
	 * @param user
	 * @return
	 */
	public CallResult addUser(User user);
	
	/**
	 * query user List
	 * @return
	 */
	public CallResult list();

}
